package com.cloudkinto.service.regular.vo;

import com.cloudkinto.entity.PlatformOrderDo;
import com.cloudkinto.entity.PlatformOrderProductDo;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PlatformOrderCheckReq {
//    @ApiModelProperty("审核成功自动提交仓库 0否 1是")
//    private int autoSubmit;
    PlatformOrderDo orderDo;
    List<PlatformOrderProductDo> productDos;
    @ApiModelProperty("是否需要匹配平台sku")
    private boolean needMatchSku;
    @ApiModelProperty("是否合并 0 没有 1合并了")
    private boolean mergeFlag;

    private String mergeOrderNo;

    private List<Long> orderIds;
    private Long userId;
    private Long companyId;

    private Long tenantId;


    public PlatformOrderCheckReq(PlatformOrderDo orderDo, List<PlatformOrderProductDo> productDos) {
        this.orderDo = orderDo;
        this.productDos = productDos;
    }

    public PlatformOrderCheckReq(PlatformOrderDo orderDo, List<PlatformOrderProductDo> productDos, boolean needMatchSku, Long userId, Long companyId, Long tenantId) {
        this.orderDo = orderDo;
        this.productDos = productDos;
        this.needMatchSku = needMatchSku;
        this.userId = userId;
        this.companyId = companyId;
        this.tenantId = tenantId;
    }
}
